/*
 * @Descripttion: 
 * @version: 
 * @Author: TT
 * @Date: 2023-08-15 10:57:23
 * @LastEditors: TT
 * @LastEditTime: 2023-10-30 14:39:31
 */

import 'package:flutter/material.dart';
import 'package:hzy_project_template/base_ui_config/base_ui_config_index.dart';

import 'package:hzy_project_template/config/config_index.dart';

import '../widgets/login_child_widget.dart';
import '../config/note_login_config.dart';

class NoteAccountLoginV extends CommonGetXV<NoteAccountLoginC> {
  NoteAccountLoginV({Key? key}) : super(key: key);
  @override
  NoteAccountLoginC get controller => Get.put(NoteAccountLoginC());

  @override
  Widget createBody({
    required BuildContext context,
    BoxConstraints? constraints,
  }) {
    Widget body = LoginChildWidget(
      config: controller.noteLoginConfig,
      tapCallback: (imageModel) {
        controller.tapDo();
      },
    );
    return body;
  }
}

class NoteAccountLoginC extends CommonGetXController {
  // --------- 属性 --------- //

  NoteLoginConfig noteLoginConfig = NoteLoginConfig(
    headerType: 2,
    nickNameType: 2,
    inputStype: 2,
    bottomType: 1,
  );
  // --------- 生命周期  --------- //
  @override
  configDefault() {
    configNormalData();
    isShowAppBar = false;
    safeAreatop = false;
    scallBackGroundColor = HzyCommonColor().whitebackgroundColor;
    safeAreabottm = true;
  }

  // --------- 数据处理  --------- //

  /// 配置默认数据
  configNormalData() {}
  // --------- 触发事件  --------- //

  tapUserImg() {}

  tapDo() {}
}
